package com.restaurant.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.restaurant.mapper.DeptMapper;
import com.restaurant.service.DeptService;

@Controller
@RequestMapping("/shou")
public class RestController {
	@Autowired
	private DeptService deptService;
	
	

	public DeptService getDeptService() {
		return deptService;
	}



	public void setDeptService(DeptService deptService) {
		this.deptService = deptService;
	}



	@RequestMapping("/test")
	public ModelAndView  test() {
		ModelAndView andView  = new ModelAndView();
			andView.setViewName("dingcan");
		return andView;
		
		
	}
}
